package com.tdwyz.fictionmanage.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 14543
 * @version 1.0
 * @description: TODO
 * @date 2024/7/20 10:03
 */
@Data
public class FileUpload {
    private Integer id;
    private String name;
    private String url;
    private Integer type;
    private Integer createUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    public FileUpload() {
    }

    public FileUpload(String name, String url, Integer type, Integer createUser) {
        this.name = name;
        this.url = url;
        this.type = type;
        this.createUser = createUser;
    }
}
